<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 
    JSP Name : winnerpopup.jsp
    Description : 이벤트 참가자 레이어
    author jkKim
    since 2012. 5. 10.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 5. 10.     jkKim     최초 생성
--%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<div class="event-info-wrap">
            <div class="event-info">
                <img src="<c:url value='${result.thumnImgPath}'/>" alt="<c:out value='${result.evntTitl}'/>" class="thumb" />
                <div class="information">
                    ${result.evntSbc}
                    <p class="period">${fn:substring(result.strtDt, 0, 4)}-${fn:substring(result.strtDt, 4, 6)}-${fn:substring(result.strtDt, 6, 8)} ~ ${fn:substring(result.fnhDt, 0, 4)}-${fn:substring(result.fnhDt, 4, 6)}-${fn:substring(result.fnhDt, 6, 8)}</p>
                </div>
            </div>
            <p class="check-desc"><img src="/kr/images/layerpopup/txt_winner01.gif" alt="이벤트 응모 시 작성하신 핸드폰 번호와 이름을 입력해 주세요." /></p>
            <div class="info-check-form">
                <div>
                    <strong><img src="/kr/images/layerpopup/txt_person_info02.png" alt="휴대폰 번호" /></strong>
                    <select class="select select-type1" style="width:56px;" id="hpNo1">
                        <able:hmcCodeTag type="option" gCd="HP"/>
                    </select>
                        -
                        <input type="text" class="txt" style="width:52px" title="앞자리 입력" id="hpNo2" maxlength="4" onKeyup="numbersOnly(this)"/>
                        -
                        <input type="text" class="txt" style="width:52px" title="뒷자리 입력" id="hpNo3" maxlength="4" onKeyup="numbersOnly(this)"/>
                </div>
                <div class="name">
                    <strong><img src="/kr/images/layerpopup/txt_person_info01.png" alt="성명" /></strong>
                    <input type="text" class="txt" style="width:196px;"id="mbrNm" title="이름 입력"/>
                </div>
                <input type="image" src="/kr/images/layerpopup/btn_search.gif" alt="검색" class="input-btn" onclick="checkWinner('${result.evntMnSn}')"/>
            </div>
        </div>
<script>
$('#hpNo1').customSelect();

function numbersOnly(obj)
{
    var str = obj.value;
   
    if(str.length > 0)
    {
        if(isNaN(str) == true )
        {
            alert("숫자만 입력 가능합니다");
            obj.value = "";
            return false;
        }    
    }
    
    return true;
    
}
</script>